package xiegd.study.lambda;

/**
 * @Description:
 * @Author: xieguangda
 * @Date: 2021年07月15日 16:16
 */
public class LambdaStreamApi {

    public static void main(String[] args) {
        int pageSize = 10;
        long newCount =new Long("21");

        long oldCount = new Long("19");

        long total = newCount + oldCount;
        int newPageNum = (int) Math.ceil(1.0 * newCount / pageSize);

        System.out.println("newPageNum:::" + newPageNum);
    }

}
